package com.cz.datafetcher.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cz.datafetcher.entity.search.BaseSearchModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "fetchWays")
@ApiModel(value = "采集方式",description = "别人上传，爬取a接口，爬取b接口等")
public class FetchWays extends BaseSearchModel implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;
    @TableField("name")
    @ApiModelProperty("名称，搜索like")
    private String name;
    @TableField("apiClass")
    @ApiModelProperty("实现类")
    private String apiClass;

    @TableField("posterKey")
    @ApiModelProperty("推送者密钥")
    private String posterKey;
}
